<section id="team-list" class="section">
	<div class="search">
		<form class="" role="search">
			<div class="form-group">
				<input type="text" class="form-control" placeholder="输入你想查询的姓名" ng-model="userName">
			 	<i class="fa fa-search"></i>
			</div>	
		</form>
	</div>
	<div class="content">
		<div class="match-info clearfix">
			<a href="javascript:;" class="image pull-left"><img src="{{subjects.image}}" alt=""></a>
			<div class="title pull-left">
				<h4 ng-bind="subjects.title"></h4>
				<p><span ng-repeat="subject in subjects.subject" ng-bind="subject.subjectName" ng-if="subject.subjectId==subjectIds"></span></p>
			</div>
			<div class="text pull-right">
				<span class="address" ng-bind="subjects.address"></span>
				<span class="time" ng-bind="subjects.time"></span>
			</div>
		</div>

		<div class="header">
			<div class="row">
				<div class="col-xs-7">
					<div class="user-info">
						<ul>
							<li>&nbsp;</li>
							<li><span style="letter-spacing: .5px;">团队名</span>称： {{teamData[0].teamName}}</li>
							<li><span style="letter-spacing: 8px;">总里</span>程： {{teamData[0].totalMileage}}</li>
							<li><span style="letter-spacing: 8px;">总时</span>间： {{teamData[0].totalTime}}</li>
						</ul>
					</div>
				</div>
				<div class="col-xs-5">
					<div class="ranking">
						<span>{{teamData[0].teamRanking}}</span>
					</div>
				</div>
			</div>
		</div>

		<div class="table-responsive" id="">
			<table ng-table="vm.tableParams" class="table table-border" show-filter="true">
			    <tr ng-repeat="user in teamData | filter: userName | orderBy: 'ranking'" ui-sref="listPerson({matchId: matchId, subjectId: subjectIds, userId: user.userId})">
			        <td class="text-center" title="'姓名'">
			            {{user.userName}}
			        </td>
			        <td class="text-center" title="'性别'">
			            {{user.userSex}}
			        </td>
			        <td class="text-center" title="'里程'">
			            {{user.totalMileage}}
			        </td>
			        <td class="text-center" title="'总团数'">
			            {{teamData.length}}
			        </td>
			        <td class="text-center" title="'排名'">
			            {{user.ranking}}
			        </td>
			    </tr>
			</table>
		</div>
	</div>
</section>